﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserList.aspx.cs" Inherits="UserList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   <title>请选择证书</title>
	<script>
	    window.onload = function () {
	        var userList = window.dialogArguments;
	        var s = userList.split("selectMsg");
	        var temp = userList.split("&&&");
	        document.getElementById("tableSelect").size = temp.length;
	        for (var i = 0; i < temp.length; i++) {
	            var strName = temp[i].substring(0, temp[i].indexOf("||"));
	            var strUniqueID = temp[i].substring(temp[i].indexOf("||") + 2, temp[i].length);
	            var objItem = new Option(strName, strUniqueID);
	            document.getElementById("tableSelect").options.add(objItem);
	        }
	    };
	    function submitValue() {
	        var returnValues = document.getElementById("tableSelect").value;
	        window.returnValue = returnValues;
	        window.close();
	    }
		</script>
</head>
<body>
<select id="tableSelect" style="width:260px" onchange="">
</select>
<button type="button" onclick="submitValue();">确认</button><button type="button" onclick="window.close();">取消</button>
</body>
</html>
